# 1. 获取用户输入的内容
def getInput():
    return input("请输入一个字符串：")


# 2. 对内容进行字符统计
def count(source: str):
    result = {}
    for i in source:
        if 'a' <= i <= 'z' or 'A' <= i <= 'Z' or '0' <= i <= '9':
            result[i] = result.get(i, 0) + 1
    return result


# 4. 输出统计的结果
def showResult(result: list):
    print(result)


# 5. 主函数
def main():
    showResult(count(getInput()))


# 6. 调用主函数
main()
